import Vue from 'vue'
import App from './App'
import configs from '@/config/app.js'
import Store from '@/store/index.js'
import Cache from '@/utils/cache'
import CryptoJS from 'crypto-js'

//封装方法挂载到原型上
Vue.prototype.$Config = configs;
Vue.prototype.$Cache = Cache;
Vue.prototype.$store = Store;
Vue.prototype.$CryptoJS = CryptoJS;
uni.$store=Store

import "@/utils/index.js"
import { fetchVersion,cache } from '@/data/index.js'
//清空缓存
doClearCache()
//加载视频
fetchVersion()
//缓存视频
cache()
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
import uvUI from '@/uni_modules/uv-ui-tools'
import { doClearCache } from './utils/utils'
Vue.use(uvUI);
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	Store,
	Cache
})
app.$mount()
